﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PDF2LibConfig.aspx.cs" Inherits="P3.Modules.SharePoint.PDF2Lib.Layouts.P3.Modules.SharePoint.PDF2Lib.PDF2LibConfig" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">

<span style="float:left">
<h1>
    Configure PDF Field to Library Column Mapping
</h1>

<table class="table" style="line-height: 25px; ">

<thead>
<tr>
      <td colspan="3" style="font-weight:bold">Available PDF Files In the library</td>
</tr>
</thead>

<tbody>
<tr>
<td colspan="3">
<asp:DropDownList ID="PdfFilesListDropDown" style="min-width:250px;max-width:500px" runat="server" AutoPostBack="true" OnSelectedIndexChanged="PdfFilesListDropDown_SelectedIndexChanged"></asp:DropDownList>
</td>
</tr>

<tr>
<td style="font-weight:bold">Fields in PDF</td>
<td>&nbsp;</td>
<td style="font-weight:bold">Columns in Library</td>
</tr>

<tr>
<td>    <asp:ListBox ID="PdfFieldsListbox" Rows="10" style="min-width:250px;max-width:500px" runat="server" BackColor=WhiteSmoke SelectionMode=Single></asp:ListBox>

</td>
<td>   <asp:Button ID="Map_Button" runat="server" OnClick="Map_click" Text="Map" />
</td>
<td>    <asp:ListBox ID="LibColsListbox" style="min-width:250px;max-width:500px" Rows="10" runat="server" BackColor=WhiteSmoke SelectionMode=Single></asp:ListBox>
</td>
</tr>

<tr><td colspan="3" style="font-weight:bold"> PDF Fields - Library Fields Map </td></tr>

<tr>
<td colspan=3>
<table>
<tr>
<td><asp:ListBox ID="MappedListBox" style="min-width:400px" Rows="10" runat="server" BackColor=WhiteSmoke SelectionMode=Single></asp:ListBox>
</td>
<td>   <asp:Button ID="UnMap_Button" runat="server" OnClick="UnMap_click" Text="UnMap" />
</td>
<td>
    <asp:Label ID="ErrorSummary" runat="server" Text="" style="background-color:Red;color :Black;font-size:small" ></asp:Label>
</td>
</tr>
</table>
</td>
</tr>


<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><asp:Button ID="btn_Submit" runat="server" class="ms-ButtonHeightWidth" Text="Save" OnClick="btnSave_Click" />
        <asp:Button ID="btn_CancelSubmit" runat="server" CausesValidation="false" class="ms-ButtonHeightWidth" Text="Cancel" OnClick="btnCancel_Click" />
</td>
</tr>


</tbody>


</table>
</span>

<span style="float:right">
    <a href="https://www.codeplex.com/site/users/view/P3Aviation" target="_blank">
        <asp:Image ID="Image1" ImageUrl="p3_group.png" runat="server" />
    </a>
</span>

</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Configure P3 Pdf2Lib
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
Configure P3 Pdf2Lib
</asp:Content>
